package co.yixiang.modules.order.service.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @ClassName TemplateDTO
 * @Author hupeng <610796224@qq.com>
 * @Date 2020/5/28
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class TemplateDto {
    private Double number;
    private BigDecimal price;
    private Double first;
    private BigDecimal firstPrice;
    private Double _continue;
    private BigDecimal continuePrice;
    private Integer tempId;
    private Integer cityId;

    public static TemplateDtoBuilder builder() {
        return new TemplateDtoBuilder();
    }

    public static class TemplateDtoBuilder {
        private Double number;
        private BigDecimal price;
        private Double first;
        private BigDecimal firstPrice;
        private Double _continue;
        private BigDecimal continuePrice;
        private Integer tempId;
        private Integer cityId;

        TemplateDtoBuilder() {
        }

        public TemplateDtoBuilder number(Double number) {
            this.number = number;
            return this;
        }

        public TemplateDtoBuilder price(BigDecimal price) {
            this.price = price;
            return this;
        }

        public TemplateDtoBuilder first(Double first) {
            this.first = first;
            return this;
        }

        public TemplateDtoBuilder firstPrice(BigDecimal firstPrice) {
            this.firstPrice = firstPrice;
            return this;
        }

        public TemplateDtoBuilder _continue(Double _continue) {
            this._continue = _continue;
            return this;
        }

        public TemplateDtoBuilder continuePrice(BigDecimal continuePrice) {
            this.continuePrice = continuePrice;
            return this;
        }

        public TemplateDtoBuilder tempId(Integer tempId) {
            this.tempId = tempId;
            return this;
        }

        public TemplateDtoBuilder cityId(Integer cityId) {
            this.cityId = cityId;
            return this;
        }

        public TemplateDto build() {
            return new TemplateDto(number, price, first, firstPrice, _continue, continuePrice, tempId, cityId);
        }

        public String toString() {
            return "TemplateDto.TemplateDtoBuilder(number=" + this.number + ", price=" + this.price + ", first=" + this.first + ", firstPrice=" + this.firstPrice + ", _continue=" + this._continue + ", continuePrice=" + this.continuePrice + ", tempId=" + this.tempId + ", cityId=" + this.cityId + ")";
        }
    }
}
